from dronekit import connect
from time import sleep

import config

def init():
    vehicle = connect('udpin:127.0.0.1:14550', 
                      baud=115200,
                      source_component=10)
    for i in range(1, 5):
        vehicle.channels.overrides[str(i)] = config.pwm_value[i]

    return vehicle




